import sys, getopt

def main(argv):
    try:
        opts, args = getopt.getopt(argv, "hi:o:", ["input=", "output="])
    except getopt.GetoptError:
        print(' -i <inputfile> -o <outputfile>')
    for opt, arg in opts:
        if opt == '-h':
            print(' -i <inputfile> -o <outputfile>')
            sys.exit()
        elif opt in ('-i', '--input'):
            print(opt,arg)
        elif opt in ('-o', '--output'):
            print(opt,arg)

if __name__ == "__main__":
    main(sys.argv[1:])